package com.yuchao.springboot.configuration;

import com.yuchao.springboot.factory.Factory;
import com.yuchao.springboot.factory.FactoryB;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * @description:
 * @author: xingyuchao
 * @date: 2019-11-21
 */
public class ConfigurationB {

    @Bean
    @ConditionalOnMissingBean(Factory.class)
    public FactoryB factory() {
        return new FactoryB();
    }
}
